﻿using System;
using System.Collections.Generic;

namespace PSAMMatrixCloud.Model.Entity
{
    /// <summary>
    /// 应答实体基类
    /// </summary>
    [Serializable]
    public class baseresponse 
    {
        /// <summary>
        /// 总记录数
        /// </summary>
        public int total
        {
            get;
            set;
        }

        /// <summary>
        /// 数据
        /// </summary>
        public List<object> rows = new List<object>();

        /// <summary>
        /// 统计数据
        /// </summary>
        public List<object> statistics = new List<object>();

    }

    /// <summary>
    /// 应答实体基类
    /// </summary>
    public class baseresponse<T>
    {
        /// <summary>
        /// 总记录数
        /// </summary>
        public int total
        {
            get;
            set;
        }

        /// <summary>
        /// 数据
        /// </summary>
        public List<T> rows = new List<T>();

        /// <summary>
        /// 统计数据
        /// </summary>
        public List<object> statistics = new List<object>();
    }
    public class baseresponseWithHead<T> : baseresponse<T>
    {
        /// <summary>
        /// head
        /// </summary>
        public List<GridHead> heads = new List<GridHead>();
    }

    public class GridHead {
        public string id { get; set; }
        public string name { get; set; }
        public string text { get; set; }
    }
}